package com.bolt.admin.module.sys.dto;

import com.bolt.support.query.conditions.domain.MatchType;
import com.bolt.support.spring.jpa.annotation.Filter;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class RoleDTO {

    private String id;

    /**
     * * 角色代码
     **/
    @ApiModelProperty(notes = "角色代码")
    @Filter(type= MatchType.BW)
    @NotBlank
    private String code;

    /**
     * * 角色名称
     **/
    @ApiModelProperty(notes = "角色名称")
    @Filter(type= MatchType.BW)
    @NotBlank
    private String name;

    /**
     * * 说明
     **/
    @ApiModelProperty(notes = "说明")
    private String description;

    /**
     * * 是否禁用
     **/
    @ApiModelProperty(notes = "是否禁用")
    @NotNull
    private Boolean enabled;




    private Integer versionNO;

}